extends Node2D

var tmr=Timer.new()
var sms=Tween.new()

func _ready():
	add_child(sms)
	add_child(tmr)

func pa():
	sys.if_inani=false
	sys.camera.position=Vector2(0,1044)#(256,1868)
	sys.camera.rotation_degrees=180
	$"AnimationPlayer".play("fall")
	tmr.start(3.0)
	yield(tmr,"timeout")
	sms.interpolate_property(sys.camera,"rotation_degrees",180,0,0.5,Tween.TRANS_CUBIC,Tween.EASE_IN_OUT)
	sms.start()
	yield($"AnimationPlayer","animation_finished")
	sys.smcr.movable=true
